package com.share.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author:caifan
 * date:2019/8/27
 */
@RestController
@RequestMapping("/rest")
@Slf4j
public class HelloController {

    @GetMapping("hello")
    public String hello() {
        log.info("hello:java");
        return "hello Java";
    }

}
